package com.zisu.springbootsource.ioc.ann;

import com.zisu.springbootsource.ioc.Animal;
import com.zisu.springbootsource.ioc.Dog;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

//是一个配置类   @Configuration是配置类注解，目的是可以让普通类里面也可以注入其他类
@Configuration
public class BeanConfiguration {
    @Bean
    Animal getDog(){
        return new Dog();
    }
}
